package cn.yj.cgs.dba.entity.vo;

import cn.yj.cgs.dba.StringToDateDeSerializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 永健
 * @since 2021-04-27 13:50
 */
@Data
public class TaskVo {
    private Integer id;

    @JsonDeserialize(using = StringToDateDeSerializer.class)
    private Date effectivTime;

    @NotBlank(message = "请填写内容")
    private String content;

    private String userCode;

    private String taskNo;

    private String taskStatus;

    @NotBlank(message = "请输入紧急状态")
    private String urgentState;

    private String remark;

    private String auditStatus;

    @NotNull(message = "请填写服务费")
    private BigDecimal serviceFees = BigDecimal.ZERO;
}
